package com.et114.modules.system.dictionary.tag;

import java.io.Serializable;
import java.util.Comparator;

import com.et114.modules.system.dictionary.vo.BizOption;

public class BizOptionComparator implements Comparator,Serializable {
	
	private static final long serialVersionUID = 1L;

	public int compare(Object obj1, Object obj2) {
		BizOption o1=(BizOption)obj1;
		BizOption o2=(BizOption)obj2;
		Integer displOrder1=o1.getDisplOrder();
		Integer displOrder2= o2.getDisplOrder();
		String optionName = o1.getOptionName();
		String optionName2 = o2.getOptionName();
		return displOrder1.compareTo(displOrder2)&optionName.compareToIgnoreCase(optionName2);
	}
}
